<?php
/**
 *      [迷你云] (C)2009-2012 南京恒为网络科技.
 *   软件仅供研究与学习使用，如需商用，请访问www.miniyun.cn获得授权
 * 
 */
?>
<div class="form"><?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'option-form',
	'enableAjaxValidation'=>false,
    'htmlOptions'=>array('enctype'=>'multipart/form-data'),
)); ?> <?php echo $form->errorSummary($model); ?>
<table class="form-table">

<?php foreach($data as $key=>$value){ ?>
<?php if ($key == "site_logo") {?>
	<tr class="form-field form-required">
		<th scope="row"><label for="app_logo"><?php echo $value[0] ?><span
			class="description">(像素:177*69px)</span></label> <img
			style="width: 177px; height: 69px"
			src="<?php echo Yii::app()->request->baseUrl.$value[1]; ?>">
		<p><a type="submit" name="restore_app_logo" id="restore_app_logo"
			class="button-primary"
			href='/index.php?r=adminSettingPanel/retrieveLogo'>恢复默认设置</a></p>
		</th>
		<td><?php echo $form->FileField($model,'site_logo'); ?></td>
	</tr>
	<?php }else {?>
	<tr class="form-field form-required">
		<th scope="row"><label for="app_name"><?php echo($value[0]) ?> <span
			class="description">(必填)</span></label></th>
		<td><?php echo $form->textField($model,$key,array('size'=>60,'maxlength'=>128, 'value'=>$value[1])); ?></td>
		<td><?php echo $form->error($model, $key); ?></td>
	</tr>

	<?php }}  ?>
</table>
<div class="row buttons"><?php echo CHtml::submitButton('保存',array('class'=>'button-primary')); ?></div>

	<?php $this->endWidget(); ?></div>
